<?php
include "./fun.php";
$db=conndb();
$list=get_Children_Class(8, $db);
$id=isset($_GET["id"])?$_GET["id"]:'';

if ($id) {
    // case_detail
    $sql_detail="select * from cases where id='{$id}'";
    $res_detail=query1($db, $sql_detail, false);
    $casesSortid=$res_detail["sortid"];
    $detail="select * from sortclass where id='{$casesSortid}'";
    $name=query1($db, $detail, false);
    $data=["code"=>0,"msg"=>"操作成功","list"=>$list,"detail"=>$res_detail,"name"=>$name["sortname"]];
    echo json_encode($data, JSON_UNESCAPED_UNICODE);
    die();
}
